import request from "@/utils/request";

export function getList(data) {
  return request({
    url: '/imgType/list',
    method: 'get',
    params: data
  })
}

export function getPageList(data) {
  return request({
    url: '/imgType/pageList',
    method: 'get',
    params: data
  })
}

export function save(data) {
  return request({
    url: '/imgType/save',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/imgType/update',
    method: 'post',
    data: data
  })
}

export function deleteById(data) {
  return request({
    url: '/imgType/deleteByIds?ids='+ data.id,
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: data
  })
}
